package com.itheima.IO流.day01.字节流FileInputStream;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo6 {
    public static void main(String[] args) throws IOException {
        long start=System.currentTimeMillis();
        demo1();
        long end=System.currentTimeMillis();
        System.out.println((end-start)/1000.0);
    }

    public static void demo1() throws IOException {
        FileInputStream fis=new FileInputStream("D:\\黑马视频\\EV录屏\\a.mp4");
        FileOutputStream fos=new FileOutputStream("day10的IO流01\\a.mp4");
        int read;
        while ((read=fis.read())!=-1) {
            fos.write(read);
        }
        fis.close();
        fos.close();
    }
}
